package com.mmall.service;

import com.mmall.common.ServerResponse;

import java.util.Map;

public interface IOrderService {

    public ServerResponse createOrder(Integer userId, Integer shippingId);

    public ServerResponse cancel(Integer userId, Long orderNo);

    public ServerResponse getOrderCartProduct(Integer userId);

    public ServerResponse getOrderDetail(Integer userId, Long orderNo);

    public ServerResponse getOrderList(Integer userId, int pageNum, int pageSize);

    public ServerResponse manageList(int pageNum, int pageSize);

    public ServerResponse manageDetail(Long orderNo);

    public ServerResponse manageSearch(Long orderNo,int pageNum, int pageSize);

    public ServerResponse manageSendGoods(Long orderNo);

    public ServerResponse pay(Long orderNo, Integer userId, String path);

    public ServerResponse aliCallback(Map<String, String> params);

    public ServerResponse queryOrderPayStatus(Integer userId, Long orderNo);

    //hour个小时以内未付款的订单，进行关闭
    public void closeOrder(int hour);
}
